[//lasso
	define_tag(
		'params',
		-namespace='request_',
		-priority='replace',
		-description='Returns a map of the items in the request header.'
	);
		local('in') = client_headers;
		#in->replace('\r\n','\r')&replace('\n','\r');
		#in = #in->split('\r');
		
		local('out' = map);
		
		iterate(#in, local('i'));
			local('name') = #i->split(':')->first;
			local('value') = #i->removeleading(#name + ':')&trim&;
			#out->insert(#name = #value);
		/iterate;
	
		return(@#out);
	/define_tag;


	define_tag(
		'isajax',
		-namespace='request_',
		-priority='replace',
		-description='Returns true if the request header specifies XMLHTTPRequest.'
	);
		request_params->find('X-Requested-With') == 'XMLHttpRequest' ? return(true) | return(false);
	/define_tag;
	
	
	define_tag(
		'library',
		-namespace='request_',
		-description='Placeholder for tagloader compatibility.'
	);
		return('Loaded.');
	/define_tag;


	/* SVN $Id: request_library.inc 242 2006-06-01 19:49:19Z Jason Huck $ */
]
